import request from '@/utils/request'
// 调度-系统通讯录
export default {
  /**
   * 拨号，获取人员信息
   * @param uid//用户号码
   */
  queryNumAndNameByUid (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/Subscriber/queryNumAndNameByUid',
      method: 'post',
      data
    })
  } ,
  /**
   * 获取个人通讯录对讲信息
   * @param uid//用户号码
   * userId //当前系统登录账户
   */
  queryPersonalData (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/addressBookController/queryPersonalData',
      method: 'post',
      data
    })
  },
  /**
   * 通过号码和类型查询终端或群主信息
   * @param uid//用户号码
   * number type
   */
  queryByNumberAndType (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs//addressBookController/queryByNumberAndType',
      method: 'post',
      data
    })
  },
  /**
   * 拨号，通过分机号获取人员信息
   * @param uid//用户号码
   */
  queryByExtNumber (data) {
    return request({
      // ContentType: 'application/json',
      url: '/scs/addressBookController/queryByExtNumber',
      method: 'post',
      data
    })
  },
}
